package com.cnzhy.mybatis.services.impl;

import com.cnzhy.mybatis.entity.OrdUser;
import com.cnzhy.mybatis.mapper.OrdUserMapper;
import com.cnzhy.mybatis.services.interfaces.OrdUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: zhaoyan5
 */
@Service
public class OrdUserServiceImpl implements OrdUserService {

    @Resource
    private OrdUserMapper ordUserMapper;

    @Override
    public OrdUser selectByUserId(Long userId) {
        return ordUserMapper.selectByUserId(userId);
    }

    @Override
    public OrdUser selectTableByUserId(Long userId) {
        return ordUserMapper.selectTableByUserId("572", userId);
    }

}
